package com.huawang.mdesign.model.service;

import com.huawang.business.service.model.core.display.executor.show.factory.QuerySpecialModelIconInstance;
import com.huawang.business.service.model.core.property.valid.propertykey.ValidInstanceSpecificationClassifier;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@MapperScan(basePackages = {"com.huawang.core.mof.persistence.dao.mapper"})
@ComponentScan(value = "com.huawang", excludeFilters = {@ComponentScan.Filter(type = FilterType.REGEX, pattern = "com" +
        ".huawang" +
        ".business" +
        ".service" +
        ".project.ProjectService"),
        @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.huawang.business.service.simulation" +
                ".SimulationService"),
        @ComponentScan.Filter(
                type = FilterType.ASSIGNABLE_TYPE,
                classes = {QuerySpecialModelIconInstance.class, ValidInstanceSpecificationClassifier.class})})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
